/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.asseco.mio.codex;

import java.util.Date;
import javax.persistence.*;
import org.appfuse.model.BaseObject;
import org.hibernate.annotations.GenericGenerator;

/**
 *
 * @author filip.apostolski
 */
@Entity @Table(name="EDU_LVL")
public class EduLvl  extends BaseObject {

    private String id;
    private String eduLvlName;
    private String eduLvlCode;
    private String eduLvlDescr;
    private Boolean status=true;
    private Date activeDate;
    private Date passiveDate;

    @Column(name = "ACTIVE_DATE")
    @Temporal(value = javax.persistence.TemporalType.DATE)
    public Date getActiveDate() {
        return activeDate;
    }

    public void setActiveDate(Date activeDate) {
        this.activeDate = activeDate;
    }

    @Column(name = "EDU_LVL_CODE", length = 255)
    public String getEduLvlCode() {
        return eduLvlCode;
    }

    public void setEduLvlCode(String eduLvlCode) {
        this.eduLvlCode = eduLvlCode;
    }

    @Column(name = "EDU_LVL_DESCR", length = 4096)
    public String getEduLvlDescr() {
        return eduLvlDescr;
    }

    public void setEduLvlDescr(String eduLvlDescr) {
        this.eduLvlDescr = eduLvlDescr;
    }

    @Column(name = "EDU_LVL_NAME", length = 1000)
    public String getEduLvlName() {
        return eduLvlName;
    }

    public void setEduLvlName(String eduLvlName) {
        this.eduLvlName = eduLvlName;
    }
    @Id
    @GeneratedValue(generator = "system-uuid")
    @Column(name = "ID", length = 255)
    @GenericGenerator(name="system-uuid", strategy = "uuid")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "PASSIVE_DATE")
    @Temporal(value = javax.persistence.TemporalType.DATE)
    public Date getPassiveDate() {
        return passiveDate;
    }

    public void setPassiveDate(Date passiveDate) {
        this.passiveDate = passiveDate;
    }

    @Column(name = "STATUS")
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EduLvl other = (EduLvl) obj;
        if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 19 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "EduLvl{" + "id=" + id + "eduLvlName=" + eduLvlName + "eduLvlCode=" + eduLvlCode + "eduLvlDescr=" + eduLvlDescr + "status=" + status + "activeDate=" + activeDate + "passiveDate=" + passiveDate + '}';
    }
}
